/**
 * 获取服务列表接口
 */

//引入Q模块
let Q = require('q');
//引入公共函数
let util = require('../../util');

let index = function(getData, postData, config, _redis, db) {
	let deferred = Q.defer();
	db.select('storeFunInfo').then(function(serviceList) {
		deferred.resolve(serviceList);
	}, function() {
		deferred.reject('-0201');
	});
	return deferred.promise;
}

module.exports = {
	index: index
}